部署
    1.前置条件
        1）yarn

    2.解压spark压缩包，配置环境变量

    3.配置spark-env.sh
        添加
        HADOOP_CONF_DIR=/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop
        JAVA_HOME=/home/hadoop/app/jdk1.8.0_191


    4.提交测试程序
        ./bin/spark-submit --class org.apache.spark.examples.SparkPi \
            --master yarn \
            --deploy-mode cluster \
            --driver-memory 500M \
            --executor-memory 500M \
            --executor-cores 1 \
            --queue dev \
            examples/jars/spark-examples*.jar \
            10
